package uqbar.comm.netty.arduino;

public class SetDigitalPin {

	private int pin;
	private DigitalValue value;

	public SetDigitalPin() {

	}

	public SetDigitalPin(final int pin, final boolean value) {
		this(pin, DigitalValue.from(value));
	}

	public SetDigitalPin(final int pin, final DigitalValue value) {
		this.setPin(pin);
		this.setValue(value);

	}

	private void setPin(final int pin) {
		this.pin = pin;
	}

	public int getPin() {
		return this.pin;
	}

	public DigitalValue getValue() {
		return this.value;
	}

	public void setValue(final DigitalValue value) {
		this.value = value;
	}

}
